package learn.spring.persistence.naming;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author suzheng
 * @version v.1.0
 */
public class TestNamingBeanFactoryBean implements FactoryBean {

    private TestNamingBean createInstance(){
        return new TestNamingBean();
    }

    @Override
    public Object getObject() throws Exception {
        return createInstance();
    }

    @Override
    public Class<?> getObjectType() {
        return TestNamingBean.class;
    }
}
